import Button from "components/Base/Button";
import Icon from "components/Base/Icon";
import DataTable from "components/Base/DataTable";
import {getBpDeviceType, getEcgDeviceType} from "../../../../../models/deviceType";

export default (self) => [
  {
    title: 'id',
    name: 'id',
  },
  {
    title: '质控品名称',
    name: 'name',
    tableItem: {
    },
  },
  {
    title: '医院',
    name: 'hospitalName',
    tableItem: {
    },
  },
  {
    title: '时间',
    name: 'time',
    tableItem: {
    },
  },
  {
    title: '测量值',
    name: 'value',
    tableItem: {
    },
  },
  {
    title: '测量偏离',
    name: 'diff',
    tableItem: {
    },
  },
  {
    title: '质控品均值',
    name: 'agv',
    tableItem: {
    },
  },
  {
    title: '质控品方差',
    name: 'variance',
    tableItem: {
    },
  },
  {
    title: '批次',
    name: 'batch',
    tableItem: {
    },
  },
  {
    title: '操作',
    tableItem: {
      width: 180,
      render: (text, record) => (
        <DataTable.Oper>
          <Button tooltip="修改" onClick={e => self.onUpdate(record)}>
            <Icon type="edit"/>
          </Button>
          <Button tooltip="删除" onClick={e => self.onDelete(record)}>
            <Icon type="trash"/>
          </Button>
        </DataTable.Oper>
      )
    }
  }
]
